package com.cj.core.response;

/**
* @Description:  返回信息枚举错误提示信息
* @Author: 陈军
* @Tel: 13984919416
* @Date: 2022/5/12
*/
public final class REnum {

    public static final REnum SUCCESS = create(200, true, "成功", "成功");
    public static final REnum FAIL = create(299, false, "错误", "系统异常，请联系管理员");

    private Integer code;
    private Boolean success;
    private String title;
    private String msg;

    private REnum(Integer code, Boolean success, String title, String msg) {
        this.code = code;
        this.success = success;
        this.title = title;
        this.msg = msg;
    }

    public static REnum create(Integer code, Boolean success, String title, String msg) {
        return new REnum(code, success, title, msg);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
